//
// Created by 王书哲 on 25-3-18.
//
#include <stdio.h>
extern void srand1(unsigned int x);
extern int rand1(void);
int main(void)
{
    int count;
    unsigned seed;
    printf("Please enter your number:");
    while (scanf("%u",&seed)==1)
    {
        srand1(seed);
        for (count=0;count<5;count++)
            printf("%d\n",rand1());
        printf("Please enter next seed (q to quit):\n");
    }
    return 0;
}